<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://module.nado.com/pagination/taglibs" prefix="pagination" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
</head>

<body>
<div class="content_top">
	<p class="path">
		<strong>공지사항</strong>
	</p>
</div>

<div class="div_left">
Total : <b id="total">${noticeCount}</b> 건
</div>
<div class="div_right">
	<a href="/notice/form" class="btn_sml"><span>새로운 공지 등록</span></a>
	<a href="javascript:;" class="btn_sml"><span>편집</span></a>
</div>
<br>
<br>

<div class="tbl_type1">
	<table cellspacing="0" border="1">
		<col width="40">
		<col width="60">
		<col>
		<col width="85">
		<col width="85">
		
		<thead>
		<tr>
			<th><input type="checkbox" class="chkAll"></th>
			<th>No.</th>
			<th>제목</th>
			<th>등록일시</th>
			<th>등록자</th>
		</tr>
		</thead>
		
		<tbody>
		<c:forEach items="${noticeList}" var="item" varStatus="itemSt">
		<tr>
			<td align="center"><input type="checkbox" class="chk" name="chkItem" value="${item.no}"></td>
			<td align="center">${itemSt.index + 1}</td>
			<td>${item.title}</td>
			<td align="center">${item.registerDate}</td>
			<td align="center">${item.userId}</td>
		</tr>
		</c:forEach>
		<c:if test="${empty noticeList}">
		<tr>
			<td colspan="5" align="center">검색한 데이터가 없습니다.</td>
		</tr>
		</c:if>
		</tbody>
	</table>
</div>

<div id="paginate" class="paginate">
	<pagination:paginate paginationInfo="${paginate}"/>
</div>
</body>
</html>